/*
 * @Author: _LJP 2634716776@qq.com
 * @Date: 2024-01-30 15:30:54
 * @LastEditors: _LJP 2634716776@qq.com
 * @LastEditTime: 2024-02-01 18:59:27
 * @FilePath: /my_-linux/Pro24/Hashi/unordered/HashTable/test.cpp
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置
 * 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
#include <iostream>
#include <string>

#include "hashTable.h"

using namespace std;

void test1() {
  //   HashTable<int, int> hs1;
  HashTable<string, string> hs1;
  // HashTable<double, double> hs1;
  // int arr[] = {3,33,2,13,5,12,1002,15,25,65,23};
  // int arr[] = {3, 33, 2, 13, 5, 12, 1002};
  // double arr[] = {3.12, 31.3, 2.58, 13.6, 5.8, 12.5, 1002.6};
  string arr[] = {"苹果", "菠萝",   "梨子", "桃子", "哈密瓜", "香蕉",
                  "栗子", "水果派", "水果", "电脑", "计算机", "西红柿"};

  for (auto it : arr) {
    hs1.Insert(make_pair(it, it));
  }

  hs1.Check();

  cout << "===========================" << endl;
  cout << "===========================" << endl;
}

int main() {
  //   cout << "hello world" << endl;

  test1();
  return 0;
}